package com.jamcodingnm.apps.abqevents;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

/**
 * Activity for RSS Item Description.
 * 
 * @author jeremy,marcos
 * 
 */
public class RSSItemActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.item_description);

		Bundle bundle = getIntent().getExtras();
		bundle = bundle.getBundle("android.intent.extra.INTENT");

		String title = bundle.getString("title");

		TextView textView = (TextView) findViewById(R.id.rss_item_title);
		textView.setText(title);

		String description = bundle.getString("description");

		textView = (TextView) findViewById(R.id.rss_item_description);
		textView.setText(description);

		String link = bundle.getString("link");

		textView = (TextView) findViewById(R.id.rss_item_link);
		textView.setText(link);

		String details = bundle.getString("details");

		textView = (TextView) findViewById(R.id.rss_item_details);
		textView.setText(details);
	}
}